import request from "./axios";

interface GetLPNParams {
  userId: string;
  approvalStatus?: "APPROVED" | "PENDING" | "REJECTED"; // 根据你的需求添加状态
  simplify?: boolean;
}

interface GetLPNUpdateParams {
  lpnId: string;
}

// interface GetLPNSaveParams {
//   lpnNo: string;
//   vehType: string;
//   lpnNoInput: string;
// }

const api = "/api/v1";

export const getLPNList = (params: GetLPNParams) => {
  return request.post(`${api}/lpn/getList`, params);
};

export const getLPNUpdate = ({ lpnId }: GetLPNUpdateParams) => {
  return request.post(`${api}/lpn/update`, {
    lpnId,
  });
};

export const getLPNSave = (params: any) => {
  return request.post(`${api}/lpn/save`, params);
};
